package com.maogouxiong.seatatestorder.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName StorageFeignService
 * @Description
 * @Author zhanhao
 * @Date 2020/6/19 11:31
 * @Version V1.0
 **/
@FeignClient(value = "seata-storage")
public interface StorageFeignService {

    @RequestMapping(value = "/storage/storage/reduceStorage")
    void reduceStorage(@RequestParam("count") int count, @RequestParam("commodityCode") String commodityCode);
}
